package com.spsy.file;

//import com.spsy.RemoteFileService;
import com.spsy.common.core.domain.R;
import com.spsy.system.api.RemoteFileService;
import com.spsy.system.api.domain.SysFile;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

/**
 * @Author: Sokai
 * @Date: 2024/10/17 20:08
 * @Description:
 **/
@RestController
@RequestMapping("/file")
public class ApiSpsyFile {

    @Autowired
    RemoteFileService remoteFileService;
    @PostMapping("/upload")
    public R<SysFile> upload(MultipartFile file) {
        return remoteFileService.upload(file);
    }
}
